package com.yjk1.example.myFirstSofawebBoot.mapping;

import org.springframework.web.servlet.mvc.method.RequestMappingInfo;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/11/15 16:38 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
public interface RequestMappingRegister {

    /**
     * 根据Controller的class来注册一个Controller中的所有RequestMapping
     * @param clazz
     * @return
     */
    void registerForControllerClass(Class<?> clazz,Object proxy,String pluginName) throws RegisterMappingException;

    /**
     * 根据pluginName反注册所有注册的Controller
     * @param pluginName
     * @return
     */
    void unRegisterForPluginName(String pluginName) throws RegisterMappingException;
}
